<div id="buscar">
    <%= form_tag({:action=> "index", :method => 'get'}) %>
    <span style="FLOAT: left"><h1><input id="t" class="texto" onclick="javascript:restart('t')" type="text" value="Buscar Jefe de Raza..." name="search"></h1></span><input type="image" img src="/images/search.png" border="0px" align="right" style="padding-right:10px";  alt="Buscar Caballos" title="Buscar Caballo">
    </form>
</div>
<div class="post">
    <h2>Jefes de Raza</h2>
    <br/>
    <% if @breedheads.empty? %>
    No Se encontro<% else %>
    <table border="1">
        <tr>
            <th align='left' style="width:250px">
                Horse
            </th>
            <th align='left' style="width:250px">
                Bred
            </th>
            <th align='left' style="width:150px">
                Acciones
            </th>
        </tr>
        <% @breedheads.each do |breedheads| %>
        <tr>
            <td width='250px' height="32px">
                <%=h breedheads.horse_name %>
            </td>
            <td width='250px' height="32px">
                <%=h breedheads.breed_name %>
            </td>
            <td width='150px' height="32px">
                <%= link_to '<img src="images/profile.png" border="0px" align="left" style="padding-right:10px"; alt="Ver Perfiel" title="Ver Perfiel">', Horse.find_by_id(breedheads.horse_id),:class=>'opacityit' %>
            </td>
        </tr>
        <% end %>
    </table>
    <% end %>
    <%= will_paginate @breedheads %>
    <!-- link_to 'New bread_head', new_breedhead_path -->
</div>
</div>
<div id="sidebar">
    <ul>
        <li>
            <h2>Herramientas</h2>
            <ul>
                <li>
                    <%= link_to 'Insertar Caballo', new_horse_path %>
                </li>
                <li>
                    <%= link_to 'Ver Familias', families_path %>
                </li>
                <li>
                    <%= link_to 'Ver Jefes de Razas', breedheads_path %>
                </li>
            </ul>
        </li>
    </ul>
</div>
